
package com.ifcar.app.activity.topic;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ifcar.app.util.ThemeSettingsHelper;
import com.ifcar.app.view.LoadingListView;
import com.ifcar.app.activity.R;

public class VoteWithListFrament extends VoteFrament  {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        return inflater.inflate(R.layout.pull_load_list_layout, container, false);
    }
    
    @Override
    public void onViewCreatedNR(View view, Bundle savedInstanceState) {
        super.onViewCreatedNR(view, savedInstanceState);

        LoadingListView loadingListView = (LoadingListView) getView()
        .findViewById(R.id.loading_list);
        attachLoadingListView(loadingListView);
    }
    
    @Override
    public void onTabSelected(boolean first) {
        super.onTabSelected(first);
        setTitle(R.string.main_title_vote);
        
    }
    
    @Override
    public void onApplyTheme() {
        super.onApplyTheme();

        ThemeSettingsHelper themeSettingsHelper = getThemeSettingsHelper();
        Context context = getActivity();
        themeSettingsHelper.setListViewDivider(context,
                getListView(), R.drawable.list_divider_line);
    }
    
}
